﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace LuoYi.Admin.Entities;

/// <summary>
/// 角色和部门关联表
/// </summary>
[PrimaryKey("RoleId", "DeptId")]
[Table("sys_role_dept")]
public class SysRoleDept : IEntity
{
    /// <summary>
    /// 角色ID
    /// </summary>
    [Key]
    [Column("role_id", TypeName = "bigint(20)")]
    public long RoleId { get; set; }

    /// <summary>
    /// 部门ID
    /// </summary>
    [Key]
    [Column("dept_id", TypeName = "bigint(20)")]
    public long DeptId { get; set; }
}
